package com.cskaoyan.bean.admin.mall.vo;

import com.cskaoyan.bean.pojo.Order;
import com.cskaoyan.bean.pojo.OrderGoods;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Name : OrderDetailVo.java
 * @Time : 2021/8/12 22:58
 * @Author : Xfeng
 * @Software : IntelliJ IDEA
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderDetailVo {
    /**
     * orderGoods : [{"productId":167,"addTime":"2021-07-14 22:51:34","orderId":53,"goodsId":1116011,"goodsSn":"1116011","updateTime":"2021-07-14 22:51:34","specifications":["标准"],"number":1,"picUrl":"http://yanxuan.nosdn.127.net/767b370d07f3973500db54900bcbd2a7.png","deleted":false,"price":36,"comment":0,"id":69,"goodsName":"蔓越莓曲奇 200克"}]
     * user : {"nickname":"测试用户","avatar":"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80"}
     * order : {"consignee":"松哥","address":"湖北省 武汉市 洪山区 花山街道软件新城2期","comments":0,"addTime":"2021-07-14 22:51:34","orderSn":"20210714238268","actualPrice":44,"mobile":"15976753826","orderStatus":201,"updateTime":"2021-07-14 23:40:36","message":"","userId":1,"grouponPrice":0,"deleted":false,"goodsPrice":36,"couponPrice":0,"orderPrice":44,"id":53,"endTime":"2021-07-14 23:40:36","freightPrice":8,"integralPrice":0}
     */
    private List<OrderGoods> orderGoods;
    private UserEntity user;
    private Order order;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class UserEntity {
        /**
         * nickname : 测试用户
         * avatar : https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80
         */
        private String nickname;
        private String avatar;

    }

}
